﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace XLDL.Admin
{
    public partial class Manage_adm : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, System.EventArgs e)
        {
            UserControl usControl = new UserControl();
            string strUserControlName = null;
            strUserControlName = Request.QueryString["act"];
            if (strUserControlName == null)
            {
                Response.Redirect("CTAdm.aspx?act=Banner");
                return;
            }
            else
            {
             
                strUserControlName = string.Format("{0}.ascx", strUserControlName);
                usControl = (UserControl)Page.LoadControl("Admin/" + strUserControlName);
                this.ID = "Manage1";
                this.Controls.Clear();
                this.Controls.Add(usControl);
            }

        }
    }
}